//
//  CarBannerCollectionCell.swift
//  koolcar
//
//  Created by kuaimaxiansheng on 2023/9/22.
//

import UIKit

class CarBannerCollectionCell: UICollectionViewCell {
    var imgView: UIImageView!
    override init(frame: CGRect) {
        super.init(frame: frame)
        let imgH = (kScreenWidth - 36) * 9/16
        imgView = UIImageView.init(frame: CGRect.init(x: 0, y: 0, width: kScreenWidth - 36, height: imgH))
        imgView.clipsToBounds = true
        imgView.contentMode = .scaleAspectFill
        imgView.isUserInteractionEnabled = false
        self.contentView.addSubview(imgView)
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
